﻿<%@ Page Language="C#" MasterPageFile="~/Publish/Comment.master" AutoEventWireup="true"
    CodeFile="WriteComment.aspx.cs" Inherits="Publish_WriteComment" Theme="Green" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphCaption" runat="Server">
    Góp ý nhận xét sản phẩm
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="Server">

    <script language="JavaScript" src="../scripts/dbtt.js" type="text/javascript"></script>

    <asp:Panel ID="pnlMain" runat="server" Width="100%">
        <table class="box" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="left alter">
                    <p>
                        Sản phẩm:</p>
                </td>
                <td class="right alter">
                    <p class="product">
                        <%=m_title %></p>
                </td>
            </tr>
            <tr>
                <td class="left">
                    <p>
                        Họ và tên:</p>
                </td>
                <td class="right">
                    <p>
                        <asp:TextBox onkeypress="return handleEnter(this, event);" ID="txtFullname" runat="server"
                            SkinID="txtCommon" MaxLength="50"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqFullname" runat="server" ErrorMessage="(*)" ControlToValidate="txtFullname"
                                Display="Dynamic" EnableClientScript="False" ValidationGroup="a"></asp:RequiredFieldValidator></p>
                </td>
            </tr>
            <tr>
                <td class="left">
                    <p>
                        Địa chỉ email:</p>
                </td>
                <td class="right">
                    <p>
                        <asp:TextBox onkeypress="return handleEnter(this, event);" ID="txtEmail" runat="server"
                            SkinID="txtCommon" MaxLength="50"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqEmail" runat="server" ErrorMessage="(*)" ControlToValidate="txtEmail"
                                Display="Dynamic" EnableClientScript="False" ValidationGroup="a"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="reqEmailFormat" runat="server" ControlToValidate="txtEmail"
                                Display="Dynamic" EnableClientScript="False" ErrorMessage="(*)" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="a"></asp:RegularExpressionValidator>
                        <asp:CheckBox ID="ckbEmail" runat="server" />Hiển thị email cho mọi người biết</p>
                </td>
            </tr>
            <tr>
                <td class="left alter">
                    <p>
                        Tiêu đề:</p>
                </td>
                <td class="right alter">
                    <p>
                        <asp:TextBox onkeypress="return handleEnter(this, event);" ID="txtTitle" runat="server"
                            SkinID="txtComment" MaxLength="200"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqTitle" runat="server" ErrorMessage="(*)" ControlToValidate="txtTitle"
                                Display="Dynamic" EnableClientScript="False" ValidationGroup="a"></asp:RequiredFieldValidator></p>
                </td>
            </tr>
            <tr>
                <td class="left">
                    <p>
                        Nội dung:</p>
                </td>
                <td class="right">
                    <p class="note">
                        Vui lòng gõ bằng tiếng Việt có dấu (tối đa 1000 ký tự)
                        <asp:RequiredFieldValidator ID="reqContent" runat="server" ErrorMessage="(*)" ControlToValidate="txtContent"
                                Display="Dynamic" EnableClientScript="False" ValidationGroup="a"></asp:RequiredFieldValidator><br />
                        <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Rows="3" SkinID="txtComment"></asp:TextBox>
                        <br />
                        Tất cả nhận xét của quý vị sẽ được chúng tôi kiểm duyệt trước khi hiển thị.<br />
                        Xin quý vị vui lòng thông cảm</p>
                </td>
            </tr>
            <tr>
                <td class="left alter">
                    <p>
                        Xác nhận:</p>
                </td>
                <td class="right alter">
                    <p>
                        <asp:TextBox onkeypress="return handleEnter(this, event);" ID="txtAuthentic" runat="server"
                            MaxLength="5" SkinID="txtAuthentic"></asp:TextBox>&nbsp;<img src="Authentic.aspx"
                                alt="" border="0" align="absmiddle" />
                        <asp:RequiredFieldValidator ID="reqAuthentic" runat="server" ErrorMessage="(*)" ControlToValidate="txtAuthentic"
                                Display="Dynamic" EnableClientScript="False" ValidationGroup="a"></asp:RequiredFieldValidator></p>
                </td>
            </tr>
            <tr>
                <td class="left">
                    <p>
                        &nbsp;</p>
                </td>
                <td class="right">
                    <p>
                        <input class="search" id="btnSend" type="button" value="Gửi" name="btnSend" runat="server"
                            onserverclick="btnSend_ServerClick" validationgroup="a" />&nbsp;<input class="search" id="btnReset" type="button"
                                value="Nhập lại" name="btnReset" runat="server" onserverclick="btnReset_ServerClick" />&nbsp;<input
                                    class="search" id="btnCancel" type="button" value="Trở về" name="btnCancel" onclick="javascript:window.close();" /><br />
                        <span class="error">Quý vị vui lòng nhập đầy đủ thông tin vào ô nhập</span></p>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
